/*
** my_strncpy.c for my_strncpy in /home/gueux_g/piscine/Jour_06
**
** Made by gregory gueux
** Login   <gueux_g@epitech.net>
**
** Started on  Mon Oct  8 10:04:34 2012 gregory gueux
** Last update Thu Oct 11 20:36:53 2012 gregory gueux
*/

char	*my_strncpy(char *dest, char *src, int n)
{
  int	count;

  count = 0;
  while (count < n && src[count])
    {
      dest[count] = src[count];
      count = count + 1;
    }
  if (n > count)
    dest[count] = '\0';
  return (dest);
}
